<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>测试数据库连接</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui-v2.5.5/css/layui.css" />
</head>
<form >
	<input type="button" value="检测数据连接" id="db_connected"/>
</form>
<body>
</body>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/user.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
  $("#db_connected").click(function(){
    $.ajax({
    	type:"get",
    	url:projectName+"/db/taskConnect",
    	async:true,
    	success:function(resp){
    	  alert(resp.msg);
    	}
    });
  });
})
</script>
</html>